package com.javatest.redpacket.service;

import com.javatest.redpacket.entities.RedPacket;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @date 2020-08-03 下午5:33
 */
public interface RedPacketService {
    /**
     * Gets red packet.
     *
     * @param id the id
     * @return the red packet
     */
    RedPacket getRedPacket(Long id);


    /**
     * Decrease red packet int.
     *
     * @param id the id
     * @return the int
     */
    int decreaseRedPacket(Long id);
}
